package com.example.springbasic.config;

import com.example.springbasic.beans.Animal;
import com.example.springbasic.dto.AnimalDTO;
import org.springframework.context.annotation.*;

@Configuration
@ComponentScans(@ComponentScan(
        value = {"com.example.springbasic"},
        includeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,value = {Animal.class})}))
public class AnimalConfig {

    @Bean
    public AnimalDTO animalDTO() {
        return new AnimalDTO();
    }
}
